home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / update-notifier / README.testing < prev    next >
Encoding:
Text File  |  2009-03-26  |  1.0 KB  |  26 lines

  1. This applet has no unittests (yet).
  2.  
  3. In order to test changes you need to kill update-notifier from your
  4. running session (there can only be one) and start it from your local
  5. build dir. Make sure you build with --prefix=/usr (or some other
  6. location where your glade/ui files are). Then you can do the
  7. following:
  8.  
  9. Test updates:
  10. Install a package from a previous version and check if update-notifier
  11. detects that and shows a update icon. Run apt-get update and check if
  12. it detects that a package manager is running.
  13.  
  14. Test hooks:
  15. Copy a example hook file into /usr/lib/update-notifier/user.d/ (or
  16. touch it) and touch /var/lib/update-notifier/dpkg-run-stamp to trigger
  17. it reading the hooks.  Modify ~/.update-notifier/hooks_seen to
  18. simulate certain conditions. Add identical files to "user.d" to test
  19. the duplicates detection.
  20.  
  21. Test reboot notification:
  22. Run /usr/share/update-notifier/notify-reboot-required and then do
  23. touch /var/lib/update-notifier/dpkg-run-stamp.
  24.  
  25. Test cdrom detection:
  26. Put a ubuntu CD into the driver and verify that its detected.